<?xml version='1.0' encoding='ISO-8859-1' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"   
      xmlns:jb="http://java.sun.com/jsf/composite/componentes"
      xmlns:p="http://primefaces.org/ui">


    <h:panelGrid id="pgFormDtoArbolCom"   frame="box">

        <p:messages id="msgs2" showDetail="false"/>
        <h:panelGrid columns="4" id="idPgrUbigeo">
            <h:outputLabel styleClass="label" value="#{i18n['arbol.competencia.padre']}"/>
            <h:outputLabel styleClass="label" value="#{arbolCompetenciaMBean.dto.arbolCompetenciaDtoPadreDto.descripcion}" />                
            <p:spacer/>
            <p:spacer/>
            <h:outputLabel styleClass="label" value="#{i18n['arbol.competencia.tipo']}"/>
            <h:outputLabel styleClass="label" value="#{arbolCompetenciaMBean.dto.tipoTexto}" /> 
            <p:spacer/>
            <p:spacer/>
            <h:outputLabel styleClass="label" value="#{i18n['arbol.competencia.valor.meta']}" rendered="#{arbolCompetenciaMBean.dto.tipo=='C'}" />
            <p:inputText label="#{i18n['arbol.competencia.label.valor.meta']}" required="true" rendered="#{arbolCompetenciaMBean.dto.tipo=='C'}"
                         value="#{arbolCompetenciaMBean.dto.valorMeta}"  readonly="#{sessionMBean.accion == 3}"
                         size="20" styleClass="txtCampoObligatorio">
                <f:validateLength maximum="3" minimum="1" />
            </p:inputText> 
            <p:spacer rendered="#{arbolCompetenciaMBean.dto.tipo=='C'}"/>
            <p:spacer rendered="#{arbolCompetenciaMBean.dto.tipo=='C'}"/>
            <h:outputLabel styleClass="label" value="#{i18n['arbol.competencia.label.descripcion']}"/>


            <p:inputTextarea label="#{i18n['arbol.competencia.label.descripcion']}"
                             value="#{arbolCompetenciaMBean.dto.descripcion}"  readonly="#{sessionMBean.accion == 3}"
                             required="true" maxlength="1000" cols="120" rows="4"  style="#{applicationMBean.estiloObligatorio}">
            </p:inputTextarea>

        </h:panelGrid>
        <p:panel id="pnlAcciones">
            <h:panelGrid columns="10">
                <p:commandButton title="#{i18n['general.button.guardar.tip']}" accesskey="#{applicationMBean.keyGuardar}" ajax="false" 
                                 icon="ui-icon ui-icon-disk" rendered="#{sessionMBean.accion == 1}"                       
                                 value="#{i18n['general.button.guardar']}" style="#{applicationMBean.cssBotonTransaccion}"
                                 action="#{arbolCompetenciaMBean.guardar}">                                    
                </p:commandButton>    
                <p:commandButton title="#{i18n['general.button.guardar.tip']}" accesskey="#{applicationMBean.keyGuardar}" ajax="false" 
                                 icon="ui-icon ui-icon-disk" rendered="#{sessionMBean.accion == 2}"                       
                                 value="#{i18n['general.button.guardar']}" style="#{applicationMBean.cssBotonTransaccion}"
                                 action="#{arbolCompetenciaMBean.guardarEditado}">                                    
                </p:commandButton> 
            </h:panelGrid>

        </p:panel>
    </h:panelGrid> 

</html>
